
'''

元组就是一个只读的列表,用小括号来包裹
'''

# tup = (1,) #不是一个元组
# print(type(tup))
# lis = [6,7,8,9,['hello','world']]
# tup2 = tuple(lis)
# for i,item in enumerate(tup2):
#     print(i, item)

# print (tup2[4][1])
# print(type(tup2))
# print(tup2)
# tup3 = tuple('result')
# print(tup3)
#
# tup4 = tuple(range(11))
# print(tup4)
# tup5 = tuple(7)
# print(tup5)

# tup6 = 22,33,44

# a,*b = 22,33,44,55,66
# print ('a=',a)
# print ('b=',b)
# print ('c=',c)
# lis = [1,2,3,4]
# # * 就是一个解构的作用
# print(*lis)
#
# tup7 = (6,7,8,9,['hello','world'],[11,12,13])
# tup7[-1][0]=44
#
# lis7 = list(tup7)
# print (lis7)



print (hash(['key',1]))